#!/usr/bin/env python3
# -*- coding: utf-8 -*-

""" 全局变量 """

import org.rency.face.support.OSSupport as os
import org.rency.face.logger.Logger as logger
import org.rency.face.config.Configuration as conf


"""应用标识"""
APPLICATION_NAME_IDENTITY = 'face-detect'

"""日志对象"""
LOGGER = logger.Logger(os.OSSupport.getHome()+APPLICATION_NAME_IDENTITY+os.OSSupport.getSeparator()+'logger.ini')

"""临时目录"""
TEMP_DIR = os.OSSupport.getHome()+APPLICATION_NAME_IDENTITY+os.OSSupport.getSeparator()+'temp'

"""配置文件路径"""
CONF_FILE_PATH = os.OSSupport.getHome()+APPLICATION_NAME_IDENTITY+os.OSSupport.getSeparator()+'config.ini'

"""配置"""
CONFIGURATION = conf.Configuration(CONF_FILE_PATH)

"""HTTP配置节点"""
CONF_HTTP_SECTION = 'HTTP'
CONF_HTTP_TIMEOUT = 'timeout'
CONF_HTTP_USER_AGENT = 'userAgent'

CONF_OPENCV_SECTION = 'OPENCV'
CONF_OPENCV_FACE_CASCADE = 'faceCascade'
CONF_OPENCV_EYE_CASCADE = 'eyeCascade'

